package elephant.servers.webserver.core;

import java.lang.reflect.Method;

/**
 * 
 * @author icecooly
 *
 */
public class WebService implements Comparable<WebService>{
	public boolean index;
	public String controllerId;
	public String id;
	public String methodName;
	public Method invokeMethod;
	//
	@Override
	public int compareTo(WebService o) {
		return (controllerId+"."+id).compareTo(o.controllerId+"."+id);
	}
	//
	@Override
	public String toString() {
		return "[index:"+index+"]["+controllerId+"/"+id+":"+methodName+"]-"+
				invokeMethod.getDeclaringClass().getSimpleName()+
				"."+invokeMethod.getName();
	}
}
